package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.entity.OrderMain;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMainMapper {

    void insertOrderMain(OrderMain orderMain);

    void updateOrderMain(OrderMain orderMain);

    void deleteOrderMain(String id);

    OrderMain selectOrderMainById(String id);

    List<OrderMain> selectAllOrderMains();

    List<OrderMain> findRecentOrdersByCreatedById(@Param("createdById") String createdById);

}
